Run ad-m/github-push-action@v0.6.0 Started: bash /home/runner/work/_actions/ad-m/github-push-action/v0.6.0/start.sh Push to branch master remote: Permission to cs7eric/cs7eric.git denied to github-actions[bot]. fatal: unable to access 'https://github.com/cs7eric/cs7eric.git/': The requested URL returned error: 403 Error: Invalid status code: 128 at ChildProcess.<anonymous> (/home/runner/work/_actions/ad-m/github-push-action/v0.6.0/start.js:9:19) at ChildProcess.emit (node:events:527:28) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) { code: 128 } Error: Invalid status code: 128 at ChildProcess.<anonymous> (/home/runner/work/_actions/ad-m/github-push-action/v0.6.0/start.js:9:19) at ChildProcess.emit (node:events:527:28) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
查看报错信息发现 :
1 2
remote: Permission to cs7eric/cs7eric.git denied to github-actions[bot]. fatal: unable to access 'https://github.com/cs7eric/cs7eric.git/': The requested URL returned error: 403
是 actions 没有相应的权限去访问仓库,通过更改 Workflow 的访问权限后解决
在repository 中的 Settings -> Actions -> General -> Workflow Permissions 中修改权限为 Read and Write permissions